package com.dongdong.api;

import com.dongdong.model.TbAdmin;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient("dongdong-admin-service")
public interface AdminApi {

    @GetMapping("/admin/getAdminByName")
    public TbAdmin getAdminByName(@RequestParam String username);
}
